// 颜色变量
@fontColor: #a1a1a1;
@activeColor: #00be9a;

.banner {
  height: 500px;
  background: #f5f5f5;
  .wrapper {
    position: relative;
    overflow: hidden;

    & > ul {
      display: flex;
      width: 300%;
    }
    ol {
      position: absolute;
      display: flex;
      bottom: 10px;
      right: 10px;
      li {
        width: 22px;
        height: 22px;
        // background-color: pink;
        margin-right: 12px;
        padding: 4px;
        border-radius: 50%;
        cursor: pointer;
        &::before {
          content: "";
          display: block;
          width: 14px;
          height: 14px;
          background: #fff;
          border-radius: 50%;
        }
      }
      .active {
        background: rgba(255, 255, 255, 0.5);
      }
    }

    .subnav {
      position: absolute;
      top: 0;
      left: 0;
      width: 250px;
      height: 500px;
      background-color: rgba(0, 0, 0, 0.42);
      li {
        position: relative;
        height: 50px;
        // background-color: pink;
        padding-left: 29px;
        line-height: 50px;

        a {
          font-size: 14px;
          color: #fff;
          &:first-child {
            font-size: 16px;
            margin-right: 14px;
          }
        }
        &:hover {
          background: @activeColor;
        }
        &::after {
          content: "\e687";
          position: absolute;
          // top: 0;
          right: 12px;
          color: #fff;
          font-family: iconfont;
        }
      }
    }
  }
}

// 新鲜好物
.hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0 30px;
  h2 {
    font-size: 30px;

    span {
      margin-left: 35px;
      font-size: 16px;
      color: @fontColor;
    }
  }
  .all {
    color: @fontColor;
  }
}

.bd {
  ul {
    display: flex;
    justify-content: space-between;
    li {
      width: 304px;
      height: 404px;
      background: #eef9f4;
      text-align: center;
      &:hover {
        margin-top: -8px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.42);
      }
    }
    h3 {
      margin: 18px 0 9px;
    }
    p {
      font-size: 17px;
      color: #aa2113;
      span {
        font-size: 22px;
      }
    }
    a {
      display: block;
      height: 100%;
    }
  }
  .pic {
    width: 304px;
    height: 304px;
    background: orange;
  }
}

.recommend .bd li {
  background: #fff;
}
.recommend .bd p {
  color: @fontColor;
  font-size: 16px;
}

.hot {
  height: 468px;
  background: #f5f5f5;
  .hd {
    position: relative;
    .btn {
      display: flex;
      position: absolute;
      bottom: 15px;
      right: 0;
      a {
        width: 22px;
        height: 22px;
        background-color: #e2e2e2;
        margin-left: 12px;
        text-align: center;
        line-height: 22px;
        color: #fff;
        &:hover {
          background: @activeColor;
        }
      }
    }
  }
  .bd li {
    width: 244px;
    height: 306px;
  }
}

// 生鲜
.hd {
  ul {
    display: flex;
    margin-right: 65px;
    li {
      margin-left: 13px;
      a {
        padding: 0 5px;
        &:hover {
          background-color: @activeColor;
          color: #fff;
        }
      }
    }
  }
  h2 {
    flex: 1;
  }
}
.content {
  display: flex;
  justify-content: space-between;
  .left {
    width: 248px;
    height: 610px;
  }
  .right {
    width: 968px;
    height: 610px;
    background-color: orange;
    ul {
      display: flex;
      flex-wrap: wrap;
      li {
        position: relative;
        overflow: hidden;
        width: 242px;
        height: 305px;
        background-color: #fff;
        border: 2px solid transparent;

        & > a {
          display: block;
          height: 100%;
          padding: 14px 21px 0px;
        }
        &:hover {
          border-color: @activeColor;
        }
        &:hover .find {
          bottom: 0;
        }
      }
    }
    .pic {
      width: 200px;
      height: 180px;
    }
    .info {
      margin: 14px 0 7px;
      line-height: 19px;
    }
    .price {
      color: #af2f22;
      span {
        font-size: 22px;
      }
    }

    .find {
      position: absolute;
      left: 0;
      bottom: -84px;
      width: 242px;
      height: 83px;
      background-color: @activeColor;
      padding: 16px 56px 0;
      text-align: center;
      color: #fff;
      transition: all 0.3s;
      h5 {
        padding-bottom: 4px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.11);
        font-size: 18px;
      }
      a {
        margin-top: 6px;
        font-size: 13px;
        color: #fff;
        .icon-arrow-right-bold {
          font-size: 10px;
        }
      }
    }
  }
}

// 最新专题
.topic {
  margin-bottom: 40px;
}
.topic .bd li {
  width: 405px;
  height: 355px;
  background-color: #fff;
  text-align: left;
  .pic {
    position: relative;
    width: 405px;
    height: 288px;
  }
  .txt {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 405px;
    height: 90px;
    background-image: linear-gradient(
      180deg,
      rgba(137, 137, 137, 0) 0%,
      rgba(0, 0, 0, 0.9) 100%
    );
    padding: 20px 15px;
    color: #fff;
    h5 {
      font-size: 20px;
      p {
        font-size: 16px;
        color: #fff;
      }
    }
    .tag {
      width: 79px;
      height: 25px;
      background-color: #fff;
      color: #aa2113;
    }
  }
  .desc {
    display: flex;
    justify-content: space-between;
    padding: 23px 15px 0;
    span {
      font-size: 14px;
      color: #666;
    }
    .heart {
      margin-left: 10px;
    }
  }
}
